﻿@model InfoTech.VinhSon.Models.CategoryModel
@{
    ViewBag.Title = "Add Category";
    ViewBag.MnuLevel1 = "database";
    ViewBag.MnuLevel2 = "category";
    Layout = "~/Areas/Administrator/Views/Shared/_Layout.cshtml";
}
@section navigation
{
    <ul class="breadcrumbs">
        <li><a href="@Url.Action("Index",
                                 "Dashboard")"><i class="iconfa-home"></i></a><span class="separator">
                                                                              </span></li>
        <li><a href="@Url.Action("Index")">Category Management</a><span class="separator"> </span>
        </li>
        <li>Add Category</li>
    </ul>
}
@section header
{
    <div class="pageheader">
        <div class="pageicon">
            <span class="iconfa-tags"></span>
        </div>
        <div class="pagetitle">
            <h1>
                Add Category</h1>
        </div>
    </div>
}
@section script
{
    <script src="@Url.Content("~/Scripts/ckeditor/ckeditor.js")"> </script>
    <script src="@Url.Content("~/Areas/Administrator/Content/js/htmleditor.js")"> </script>
}
@Html.ValidationSummary()
<div class="widgetbox">
    <h4 class="widgettitle">
        Add Category</h4>
    <div class="widgetcontent nopadding">
        <form class="stdform stdform2" method="POST">
            <p>
                <label>
                    Parent Category</label>
                <span class="field">
                    @Html.DropDownListFor(c => c.ParentId,
                                          (IEnumerable<SelectListItem>) ViewBag.Categories,
                                          new
                                              {
                                                      @class = "uniformselect"
                                              })
                    @Html.ValidationMessageFor(c => c.Name)
                </span>
            </p>
            <p>
                <label>
                    Name</label>
                <span class="field">
                    @Html.TextBoxFor(c => c.Name,
                                     new
                                         {
                                                 @class = "input-xlarge",
                                                 placeholder = "Name"
                                         })
                    @Html.ValidationMessageFor(c => c.Name)
                </span>
            </p>
            <p>
                <label>
                    Description</label>
                <div class="field">
                     @Html.TextAreaFor(c => c.Description,
                                     new
                                         {
                                             @class = "input-xxlarge",
                                                 placeholder = "Description"
                                         })
                    @Html.ValidationMessageFor(c => c.Description)
                </div>
            </p>
            <p>
                <label>
                    Detail</label>
                <div class="field">
                    @Html.TextAreaFor(c => c.Detail,
                                     new
                                         {
                                                 @class = "input-xlarge html-editor",
                                                 placeholder = "Detail"
                                         })
                    @Html.ValidationMessageFor(c => c.Detail)
                </div>
            </p>
            <p>
                <label>
                    Priority</label>
                <span class="field">
                    @Html.TextBoxFor(c => c.Priority,
                                     new
                                         {
                                                 @class = "input-xlarge",
                                                 placeholder = "Priority"
                                         })
                    @Html.ValidationMessageFor(c => c.Priority)
                </span>
            </p>
            <p>
                <label>
                    Show in Home Menu</label>
                <span class="field">
                    @Html.CheckBoxFor(c => c.IsShowMenu)
                    @Html.ValidationMessageFor(c => c.IsShowMenu)
                </span>
            </p>
            <p>
                <label>
                    Home Group Index</label>
                <span class="field">
                    @Html.TextBoxFor(c => c.GroupIndex,
                                     new
                                         {
                                                 @class = "input-xlarge",
                                                 placeholder = "Group Index"
                                         })
                    @Html.ValidationMessageFor(c => c.GroupIndex)
                </span>
            </p>
            <p>
                <label>
                    Home Group Priority</label>
                <span class="field">
                    @Html.TextBoxFor(c => c.GroupPriority,
                                     new
                                         {
                                                 @class = "input-xlarge",
                                                 placeholder = "Group Priority"
                                         })
                    @Html.ValidationMessageFor(c => c.GroupPriority)
                </span>
            </p>
            <p>
                <label>
                    Activated</label>
                <span class="field">
                    @Html.CheckBoxFor(c => c.Activated)
                    @Html.ValidationMessageFor(c => c.Activated)
                </span>
            </p>
            <p class="stdformbutton">
                <label>
                </label>
                <input type="submit" value="Insert New" class="btn btn-primary" />
                <input type="reset" value="Cancel" class="btn" />
            </p>
        </form>
    </div>
</div>